<?php 
ob_start();
session_start();
$sess_id=$_SESSION['sess_id'];
$sess_user=$_SESSION['sess_user'];
$sess_status=$_SESSION['sess_status'];
if ($sess_id<>session_id() || $sess_user=="" || $sess_status<>"active") {
		header( "Location: login.php");exit();
	}
///////////////////////////////////////////////////////////////////////////
include('config.inc.php');
include('runid.php');
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$charset\">";
?>
<script language='javascript' src='js/script.js'></script>

<body onload="javascript:doHistoryFault('<?= $_SESSION['sess_user'];?>');">
<div id='searchList'>
<table border="0" width="100%">
<tr>
<td>
<center>
<!-- <a href="javascript:doHistoryFault('<?= $_SESSION['sess_user'];?>');" style="text-decoration:none; "><font size=4><font color="red">แสดงประวัติการแจ้งเหตุเสียของคุณ</font></font></a>-->
<input type='button' value='แสดงประวัติ' onClick="javascript:doHistoryFault('<?= $_SESSION['sess_user'];?>');"></input>
</center>
</td>
</tr>
</table>
</div>
</body>